#product1 {
  text-align: center;
  padding: 20px;
}

#product1 .product-container {
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#product1 .product-container .pro {
  width: 23%;
  min-width: 250px;
  padding: 15px;
  border: 1px solid #cce7d0;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  margin: 15px 0;
  position: relative;
}

#product1 .product-container .pro:hover {
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

#product1 .product-container .pro img {
  width: 100%;
  height: 250px; /* Define a altura fixa para criar um quadrado */
  object-fit: cover; /* Garante que a imagem preencha o quadrado sem distorção */
  border-radius: 20px;
  transition: transform 0.3s ease-in-out;
}


#product1 .product-container .pro:hover img {
  transform: scale(1.05);
}

#product1 .pro .des {
  text-align: start;
  padding: 10px 0;
}

#product1 .pro .des h5 {
  padding-top: 6px;
  color: #333;
  font-size: 16px;
  font-weight: bold;
}

#product1 .pro .des i {
  font-size: 14px;
  color: rgb(243, 181, 25);
}

#product1 .pro .des h4 {
  padding-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: hsl(127, 69%, 41%);
}

#product1 .pro .cart i {
  width: 45px;
  height: 45px;
  line-height: 45px;
  background-color: hsl(127, 69%, 41%);
  border-radius: 50%;
  color: #fff;
  position: absolute;
  bottom: 15px;
  right: 15px;
  transition: background-color 0.3s ease;
}

#product1 .pro .cart i:hover {
  background-color: hsl(127, 69%, 35%);
}

#product1 h2 {
  margin-top: 10px;
  /* font-size: 26px; */
  font-weight: bold;
  color: hsl(127, 69%, 41%);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
  #product1 .product-container {
    flex-direction: column;
    align-items: center;
  }

  #product1 .product-container .pro {
    width: 100%;
    max-width: 400px;
  }

  #product1 .pro .des h5 {
    font-size: 18px;
  }

  #product1 .pro .des h4 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  #product1 .product-container .pro {
    width: 100%;
    max-width: 100%;
  }

  #product1 h2 {
    font-size: 22px;
  }

  #product1 .pro .des h5 {
    font-size: 16px;
  }

  #product1 .pro .des h4 {
    font-size: 16px;
  }

  #product1 .pro .cart i {
    width: 40px;
    height: 40px;
    line-height: 40px;
    bottom: 10px;
    right: 10px;
  }
}

/* pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding: 10px;
}

.pagination button {
  background-color: hsl(127, 69%, 41%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 0 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination button:hover {
  background-color: hsl(127, 69%, 35%);
}

.pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.pagination #pageInfo {
  font-size: 16px;
  font-weight: bold;
  margin: 0 15px;
}

/* search_bar */

#search-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  outline: none;
}

#dropdown-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
}

#dropdown-btn:hover {
  background-color: #f0f0f0;
}

#productSearch {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Menu dropdown */
#dropdown-menu {
  display: none;
  position: absolute;
  top: 130px; /* Ajusta conforme necessário */
  left: 20px; /* Ajusta conforme necessário */
  background-color: #fff;
  color: black;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 1000;
}

#dropdown-menu button {
  display: block;
  padding: 8px 12px;
  color: black !important;
  text-align: left;
  background-color: #fff;
  border: none;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
}

#dropdown-menu button:hover {
  background-color: #f0f0f0;
}


  
@media (max-width: 500px) {
        #dropdown-menu {
          top: 110px;
        }
      }
  @media (min-width: 500px) and (max-width: 900px) {
    
      #dropdown-menu {
    top: 130px; 
    
    
  }
  
  
}





/* fullscreen */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 60%;
  text-align: center;
  position: relative;
}

.modal-content h2 {
font-size: 30px;
}

.modal-content h4{
margin-top: 10px;
margin-bottom: 10px;
color: hsl(127, 69%, 41%);
}
.modal-content .cart {
color: hsl(127, 69%, 41%);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

#modalImages {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#modalImages img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

#modalImages img:hover {
  transform: scale(1.1);
}

/* Modal de Tela Cheia */
.fullscreen-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.fullscreen-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close-fullscreen {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

#prevImage {
  left: 20px;
}

#nextImage {
  right: 20px;
}

.nav-button:hover {
  color: #ddd;
}
